function timeoutPromise() {
	const promise = new Promise((resolve, reject) => {
		setTimeout(() => {
			let r = Math.floor(Math.random() * 10)
			if (r % 2 == 0) {
				resolve('成功结果')
			} else {
				reject('失败结果')
			}
		}, 1000)
	})

	return promise
}

module.exports = {
    timeoutPromise
}